package Model1;

import java.text.SimpleDateFormat;
import java.util.Calendar;

public class sellorder {
	private String orderId=null;
	private String selldate;
	private double total;
	private static int count = 0;
	
	Calendar calendar= Calendar.getInstance();
	SimpleDateFormat dateFormat= new SimpleDateFormat("yyyy-MM-dd :hh:mm:ss");
	//System.out.println(dateFormat.format(calendar.getTime()));
	
	
	
	public sellorder(String orderId){
		this.selldate = dateFormat.format(calendar.getTime());
		this.total =0;
		this.orderId = orderId;
	}
	
	public sellorder(String orderId,String time,double total) {
		this.orderId = orderId;
		this.selldate = time;
		this.total = total;
		
	}
	
	public sellorder(String orderId,double total) {
		this.orderId = orderId;
		this.selldate = dateFormat.format(calendar.getTime());;
		this.total = total;
		
	}
	
	public String getOrderId() {
		return orderId;
	}
	
	public void setSelldate(String selldate) {
		this.selldate =selldate;
	}
	
	public String getSelldate() {
		return selldate;
	}
	
	
	public double getTotal() {
		return total;
	}

	public void setTotal(double total) {
		this.total = total;
	}
	
	public void Delete() {
		count=0;
	}
}
